Skip to main content

Google Drive Scope

AutomatR.GoogleDrive.Activities.GoogleDriveScope

The "Google Drive Scope" activity in AutomatR is part of the Google Drive activities package, allowing you to set up Google Drive with OAuth authentication for a user. This activity is a fundamental step for accessing and managing Google Drive files within your automation workflows.

Properties

NameDescription
Input
clientIdEnter the client ID for your Google Drive user's account. String variables containing the client ID.
clientSecretKeyEnter the client secret key for your Google Drive user's account. String variables containing the client secret key.
RefreshTokenClick to browse for the refresh token and select the mail ID associated with your Google Drive account. This enables the capture of the API token required to access your Google Drive account. Use the provided editor for ease of use.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelayEnter the wait time in seconds (Example 5 seconds i.e. 5) to start the activity. Integer variables containing the delay duration.
Output
(Internal) DriveServiceInternal output containing the initialized Google Drive service. This output is used internally for subsequent Google Drive activities.

How to use:

  1. Drag and drop the "Google Drive Scope" activity onto the workflow.
  2. Configure the properties by providing the client ID, client secret key, and refresh token.
  3. Optionally, configure the delay and customize the display name.
  4. Execute the workflow to set up Google Drive authentication for the specified user.

Example: Consider an example where the "Google Drive Scope" activity is used to set up Google Drive authentication for a user with the following configuration:

Google Drive Scope:
Display Name: "Authenticate Google Drive"
clientId: "your_client_id"
clientSecretKey: "your_client_secret"
RefreshToken: (Browse and select refresh token for the associated Google Drive account)

In this example, the activity sets up Google Drive authentication using the provided client ID, client secret key, and refresh token.